home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / lib / valgrind / python.supp
Encoding:
Text File  |  2010-05-17  |  7.3 KB  |  404 lines

  1. #
  2. # This is a valgrind suppression file that should be used when using valgrind.
  3. #
  4. # ---------------------------------------------------------------------------
  5. # Debian note:
  6. # The file Misc/valgrind-python.supp is placed in an modified form into the
  7. # directory /usr/lib/valgrind as python.supp. There's no need to to add it
  8. # with the --suppressions option.
  9. # The unmodified file is found in /usr/share/doc/python2.6/
  10. #
  11. # The python2.6-dbg build has been compiled with -DPy_USING_MEMORY_DEBUGGER
  12. # so you can safely comment out the suppressions for PyObject_Free and
  13. # PyObject_Realloc.
  14. # ---------------------------------------------------------------------------
  15.  
  16. #  Here's an example of running valgrind:
  17. #
  18. #    cd python/dist/src
  19. #    valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp \
  20. #        ./python -E -tt ./Lib/test/regrtest.py -u bsddb,network
  21. #
  22. # You must edit Objects/obmalloc.c and uncomment Py_USING_MEMORY_DEBUGGER
  23. # to use the preferred suppressions with Py_ADDRESS_IN_RANGE.
  24. #
  25. # If you do not want to recompile Python, you can uncomment
  26. # suppressions for PyObject_Free and PyObject_Realloc.
  27. #
  28. # See /usr/share/doc/python2.6/README.valgrind for more information.
  29.  
  30. # all tool names: Addrcheck,Memcheck,cachegrind,helgrind,massif
  31. {
  32.    ADDRESS_IN_RANGE/Invalid read of size 4
  33.    Memcheck:Addr4
  34.    fun:Py_ADDRESS_IN_RANGE
  35. }
  36.  
  37. {
  38.    ADDRESS_IN_RANGE/Invalid read of size 4
  39.    Memcheck:Value4
  40.    fun:Py_ADDRESS_IN_RANGE
  41. }
  42.  
  43. {
  44.    ADDRESS_IN_RANGE/Invalid read of size 8 (x86_64 aka amd64)
  45.    Memcheck:Value8
  46.    fun:Py_ADDRESS_IN_RANGE
  47. }
  48.  
  49. {
  50.    ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
  51.    Memcheck:Cond
  52.    fun:Py_ADDRESS_IN_RANGE
  53. }
  54.  
  55. #
  56. # Leaks (including possible leaks)
  57. #    Hmmm, I wonder if this masks some real leaks.  I think it does.
  58. #    Will need to fix that.
  59. #
  60.  
  61. {
  62.    Suppress leaking the GIL.  Happens once per process, see comment in ceval.c.
  63.    Memcheck:Leak
  64.    fun:malloc
  65.    fun:PyThread_allocate_lock
  66.    fun:PyEval_InitThreads
  67. }
  68.  
  69. {
  70.    Suppress leaking the GIL after a fork.
  71.    Memcheck:Leak
  72.    fun:malloc
  73.    fun:PyThread_allocate_lock
  74.    fun:PyEval_ReInitThreads
  75. }
  76.  
  77. {
  78.    Suppress leaking the autoTLSkey.  This looks like it shouldn't leak though.
  79.    Memcheck:Leak
  80.    fun:malloc
  81.    fun:PyThread_create_key
  82.    fun:_PyGILState_Init
  83.    fun:Py_InitializeEx
  84.    fun:Py_Main
  85. }
  86.  
  87. {
  88.    Hmmm, is this a real leak or like the GIL?
  89.    Memcheck:Leak
  90.    fun:malloc
  91.    fun:PyThread_ReInitTLS
  92. }
  93.  
  94. {
  95.    Handle PyMalloc confusing valgrind (possibly leaked)
  96.    Memcheck:Leak
  97.    fun:realloc
  98.    fun:_PyObject_GC_Resize
  99.    fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
  100. }
  101.  
  102. {
  103.    Handle PyMalloc confusing valgrind (possibly leaked)
  104.    Memcheck:Leak
  105.    fun:malloc
  106.    fun:_PyObject_GC_New
  107.    fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
  108. }
  109.  
  110. {
  111.    Handle PyMalloc confusing valgrind (possibly leaked)
  112.    Memcheck:Leak
  113.    fun:malloc
  114.    fun:_PyObject_GC_NewVar
  115.    fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
  116. }
  117.  
  118. #
  119. # Non-python specific leaks
  120. #
  121.  
  122. {
  123.    Handle pthread issue (possibly leaked)
  124.    Memcheck:Leak
  125.    fun:calloc
  126.    fun:allocate_dtv
  127.    fun:_dl_allocate_tls_storage
  128.    fun:_dl_allocate_tls
  129. }
  130.  
  131. {
  132.    Handle pthread issue (possibly leaked)
  133.    Memcheck:Leak
  134.    fun:memalign
  135.    fun:_dl_allocate_tls_storage
  136.    fun:_dl_allocate_tls
  137. }
  138.  
  139. ###{
  140. ###   ADDRESS_IN_RANGE/Invalid read of size 4
  141. ###   Memcheck:Addr4
  142. ###   fun:PyObject_Free
  143. ###}
  144. ###
  145. ###{
  146. ###   ADDRESS_IN_RANGE/Invalid read of size 4
  147. ###   Memcheck:Value4
  148. ###   fun:PyObject_Free
  149. ###}
  150. ###
  151. ###{
  152. ###   ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
  153. ###   Memcheck:Cond
  154. ###   fun:PyObject_Free
  155. ###}
  156.  
  157. ###{
  158. ###   ADDRESS_IN_RANGE/Invalid read of size 4
  159. ###   Memcheck:Addr4
  160. ###   fun:PyObject_Realloc
  161. ###}
  162. ###
  163. ###{
  164. ###   ADDRESS_IN_RANGE/Invalid read of size 4
  165. ###   Memcheck:Value4
  166. ###   fun:PyObject_Realloc
  167. ###}
  168. ###
  169. ###{
  170. ###   ADDRESS_IN_RANGE/Conditional jump or move depends on uninitialised value
  171. ###   Memcheck:Cond
  172. ###   fun:PyObject_Realloc
  173. ###}
  174.  
  175. ###
  176. ### All the suppressions below are for errors that occur within libraries
  177. ### that Python uses.  The problems to not appear to be related to Python's
  178. ### use of the libraries.
  179. ###
  180.  
  181. {
  182.    Generic ubuntu ld problems
  183.    Memcheck:Addr8
  184.    obj:/lib/ld-2.4.so
  185.    obj:/lib/ld-2.4.so
  186.    obj:/lib/ld-2.4.so
  187.    obj:/lib/ld-2.4.so
  188. }
  189.  
  190. {
  191.    Generic gentoo ld problems
  192.    Memcheck:Cond
  193.    obj:/lib/ld-2.3.4.so
  194.    obj:/lib/ld-2.3.4.so
  195.    obj:/lib/ld-2.3.4.so
  196.    obj:/lib/ld-2.3.4.so
  197. }
  198.  
  199. {
  200.    DBM problems, see test_dbm
  201.    Memcheck:Param
  202.    write(buf)
  203.    fun:write
  204.    obj:/usr/lib/libdb1.so.2
  205.    obj:/usr/lib/libdb1.so.2
  206.    obj:/usr/lib/libdb1.so.2
  207.    obj:/usr/lib/libdb1.so.2
  208.    fun:dbm_close
  209. }
  210.  
  211. {
  212.    DBM problems, see test_dbm
  213.    Memcheck:Value8
  214.    fun:memmove
  215.    obj:/usr/lib/libdb1.so.2
  216.    obj:/usr/lib/libdb1.so.2
  217.    obj:/usr/lib/libdb1.so.2
  218.    obj:/usr/lib/libdb1.so.2
  219.    fun:dbm_store
  220.    fun:dbm_ass_sub
  221. }
  222.  
  223. {
  224.    DBM problems, see test_dbm
  225.    Memcheck:Cond
  226.    obj:/usr/lib/libdb1.so.2
  227.    obj:/usr/lib/libdb1.so.2
  228.    obj:/usr/lib/libdb1.so.2
  229.    fun:dbm_store
  230.    fun:dbm_ass_sub
  231. }
  232.  
  233. {
  234.    DBM problems, see test_dbm
  235.    Memcheck:Cond
  236.    fun:memmove
  237.    obj:/usr/lib/libdb1.so.2
  238.    obj:/usr/lib/libdb1.so.2
  239.    obj:/usr/lib/libdb1.so.2
  240.    obj:/usr/lib/libdb1.so.2
  241.    fun:dbm_store
  242.    fun:dbm_ass_sub
  243. }
  244.  
  245. {
  246.    GDBM problems, see test_gdbm
  247.    Memcheck:Param
  248.    write(buf)
  249.    fun:write
  250.    fun:gdbm_open
  251.  
  252. }
  253.  
  254. {
  255.    ZLIB problems, see test_gzip
  256.    Memcheck:Cond
  257.    obj:/lib/libz.so.1.2.3.3
  258.    obj:/lib/libz.so.1.2.3.3
  259.    fun:deflate
  260. }
  261.  
  262. {
  263.    Avoid problems w/readline doing a putenv and leaking on exit
  264.    Memcheck:Leak
  265.    fun:malloc
  266.    fun:xmalloc
  267.    fun:sh_set_lines_and_columns
  268.    fun:_rl_get_screen_size
  269.    fun:_rl_init_terminal_io
  270.    obj:/lib/libreadline.so.6.1
  271.    fun:rl_initialize
  272. }
  273.  
  274. ###
  275. ### These occur from somewhere within the SSL, when running
  276. ###  test_socket_sll.  They are too general to leave on by default.
  277. ###
  278. ###{
  279. ###   somewhere in SSL stuff
  280. ###   Memcheck:Cond
  281. ###   fun:memset
  282. ###}
  283. ###{
  284. ###   somewhere in SSL stuff
  285. ###   Memcheck:Value4
  286. ###   fun:memset
  287. ###}
  288. ###
  289. ###{
  290. ###   somewhere in SSL stuff
  291. ###   Memcheck:Cond
  292. ###   fun:MD5_Update
  293. ###}
  294. ###
  295. ###{
  296. ###   somewhere in SSL stuff
  297. ###   Memcheck:Value4
  298. ###   fun:MD5_Update
  299. ###}
  300.  
  301. #
  302. # All of these problems come from using test_socket_ssl
  303. #
  304. {
  305.    from test_socket_ssl
  306.    Memcheck:Cond
  307.    fun:BN_bin2bn
  308. }
  309.  
  310. {
  311.    from test_socket_ssl
  312.    Memcheck:Cond
  313.    fun:BN_num_bits_word
  314. }
  315.  
  316. {
  317.    from test_socket_ssl
  318.    Memcheck:Value4
  319.    fun:BN_num_bits_word
  320. }
  321.  
  322. {
  323.    from test_socket_ssl
  324.    Memcheck:Cond
  325.    fun:BN_mod_exp_mont_word
  326. }
  327.  
  328. {
  329.    from test_socket_ssl
  330.    Memcheck:Cond
  331.    fun:BN_mod_exp_mont
  332. }
  333.  
  334. {
  335.    from test_socket_ssl
  336.    Memcheck:Param
  337.    write(buf)
  338.    fun:write
  339.    obj:/usr/lib/libcrypto.so.0.9.8
  340. }
  341.  
  342. {
  343.    from test_socket_ssl
  344.    Memcheck:Cond
  345.    fun:RSA_verify
  346. }
  347.  
  348. {
  349.    from test_socket_ssl
  350.    Memcheck:Value4
  351.    fun:RSA_verify
  352. }
  353.  
  354. {
  355.    from test_socket_ssl
  356.    Memcheck:Value4
  357.    fun:DES_set_key_unchecked
  358. }
  359.  
  360. {
  361.    from test_socket_ssl
  362.    Memcheck:Value4
  363.    fun:DES_encrypt2
  364. }
  365.  
  366. {
  367.    from test_socket_ssl
  368.    Memcheck:Cond
  369.    obj:/usr/lib/libssl.so.0.9.8
  370. }
  371.  
  372. {
  373.    from test_socket_ssl
  374.    Memcheck:Value4
  375.    obj:/usr/lib/libssl.so.0.9.8
  376. }
  377.  
  378. {
  379.    from test_socket_ssl
  380.    Memcheck:Cond
  381.    fun:BUF_MEM_grow_clean
  382. }
  383.  
  384. {
  385.    from test_socket_ssl
  386.    Memcheck:Cond
  387.    fun:memcpy
  388.    fun:ssl3_read_bytes
  389. }
  390.  
  391. {
  392.    from test_socket_ssl
  393.    Memcheck:Cond
  394.    fun:SHA1_Update
  395. }
  396.  
  397. {
  398.    from test_socket_ssl
  399.    Memcheck:Value4
  400.    fun:SHA1_Update
  401. }
  402.  
  403.  
  404.